<?php

class SkinHandler{
	private $defaultSkin = "style.css";
	private $altSkin = "altStyle.css";
	
	const DEFAULT_SKIN = 1;
	const ALT_SKIN = 2;
	
	const SKIN = "css";
	
	/**
	 * Funtion to set skin/css file to use
	 * @access public
	 * @param int option
	 * @return -
	 */
	public function setSkin($a_option){
		switch ($a_option){
			case self::ALT_SKIN:
				$_SESSION[self::SKIN] = $this->altSkin;
				return true;
				break;
			default:
				$_SESSION[self::SKIN] = $this->defaultSkin;
				return true;
				break;
		}
	}
	
	/**
	 * Function to get skin choice
	 * @access public
	 * @param -
	 * @return string stylesheet CSS
	 */
	public function getSkin(){
		if(isset($_SESSION[self::SKIN])){
			return $_SESSION[self::SKIN];
		}
		return null;
	}
}